package org.wlw.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.wlw.web.models.Pager;
import org.wlw.web.models.User;
import org.wlw.web.service.IUserService;

@RestController
@RequestMapping("/admin/user")
public class UserController {
    @Autowired
    private IUserService userService;

    @GetMapping("/users")
    public Pager<User> list() {
        return userService.find(new User());
    }
}
